use fltk::{app, prelude::*, window::Window,menu::*,enums::*};
fn main() {
    let app = app::App::default();
    let mut wind = Window::new(100, 100, 400, 300, "Hello from rust111");
    let mut menu = SysMenuBar::default();
    menu::set_window_menu_style(WindowMenuStyle::TabbingModeAutomatic);
    menu.set_label("系统菜单");
    menu.add(
        "子菜单一",
        Shortcut::Ctrl | 'n',
        MenuFlag::Normal,
        cb

);
    wind.end();
    wind.show();
    app.run().unwrap();
}

fn cb(m:&mut impl MenuExt) {

}